bitkeeper revision 1.7.3.57 (3e1020e0-dfh3X9yV_XBTiDw4VdH0A)
authorlynx@idefix.cl.cam.ac.uk <lynx@idefix.cl.cam.ac.uk>
Mon, 30 Dec 2002 10:33:04 +0000 (10:33 +0000)
committerlynx@idefix.cl.cam.ac.uk <lynx@idefix.cl.cam.ac.uk>
Mon, 30 Dec 2002 10:33:04 +0000 (10:33 +0000)
debug

xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c

index c9420eaa5650392826f5a3a7ee009cbcc3ddfd4a..b6af06fb8c0703c44672b27c3c1a794bccd4ad29 100644 (file)
@@ -178,7 +178,7 @@ unsigned long direct_mmap(unsigned long phys_addr, unsigned long size,
     /* add node on the list of directly mapped areas, make sure the
         * list remains sorted.
         */ 
-    dmmap = (direct_mmap_node_t *)kmalloc(KMALLOC_SIZE, GFP_KERNEL);
+    dmmap = (direct_mmap_node_t *)kmalloc(sizeof(direct_mmap_node_t), GFP_KERNEL);
     dmmap->vm_start = addr;
     dmmap->vm_end = addr + size;
        entry = find_direct(&current->mm->context.direct_list, addr);